//
//  BaseTableCell.swift
//  LGMusic
//
//  Created by 梁尚嘉 on 2017/3/22.
//  Copyright © 2017年 LimeGah. All rights reserved.
//

import UIKit

class BaseTableCell: UITableViewCell {

    class func tableCell(tableView:UITableView) -> BaseTableCell{
        let tableCell = tableView.dequeueReusableCell(withIdentifier: self.cellIdentifier())
        return tableCell as! BaseTableCell
    }

    class func cellHeight() -> CGFloat {
        return CGFloat(Float(DBL_EPSILON));
    }

    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.configure()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    func configure() {
        self.selectionStyle = UITableViewCellSelectionStyle.none
    }

    func configure(_ Object:AnyObject) {

    }

    class func cellIdentifier() -> String {
        return NSStringFromClass(self)
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
